<template>
	<view class="content">
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<u-tabbar :list="tabbar" :mid-button="true"></u-tabbar>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello uView',
				tabbar: ''
			}
		},
		onLoad() {
			/**
			 * 示例中为每个tabbar页面都写了一遍tabbar变量，您可以将tabbar数组写入到vuex中，这样可以全局引用
			 */
			this.tabbar = [{
					iconPath: "/static/example/component.png",
					selectedIconPath: "/static/example/component_select.png",
					text: '组件',
					count: 2,
					isDot: true,
					pagePath: "/pages/index/index"
				},
				{
					iconPath: "/static/example/js.png",
					selectedIconPath: "/static/example/js_select.png",
					text: '工具',
					midButton: true,
					pagePath: "/pages/js/index"
				},
				{
					iconPath: "/static/example/template.png",
					selectedIconPath: "/static/example/template_select.png",
					text: '模板',
					pagePath: "/pages/template/index"
				},
			]
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
